// !@#$McCaBe-InStRuMeNtAtIoN$#@!
// Instrumented with the McCabe Java Parser
// Version: 8.1.0.1 - 20110309
// Using Path Vector Instrumentation
// Date: Sun Apr 01 2012 20:42:45
package Model;

import com.mccabe.*;


class Seat_37af17118f3262c8e2407be3a800275c {
    static java.lang.Object info[];
    static {
        info = new java.lang.Object[2];
        info[0] = new Integer(-1);
        info[1] = new String("R:\\yu\\Concordia\\SOEN 344 Design II\\Term Assignment\\Code Repo\\trunk\\Iteration 3\\ERS\\src\\Model\\Seat.java");
    }
}


/**
 * One seat in space and time; tied to venue timeslot and only makes sense as a part of that time slot (composition).
 * @author Yury Kitaev
 *
 */
public class Seat 
{
	private boolean taken;
	private int number;
	private VenueTimeslot venue;
	
	/** 
	 * Constructor
	 * @param taken True if the seat is reserved, false if it's available
	 * @param number The seat number
	 */
	public Seat(boolean taken, int number, VenueTimeslot venue) 
	{
		super();
int _mcFreq_4a0d60cb769a49c86612958a4c733946[] = PathVec_ERS_Iter3.getIntArray(0);
PathVec_ERS_Iter3.releaseIntArray();
PathVec_ERS_Iter3.enterConstructorWithECC(Seat_37af17118f3262c8e2407be3a800275c.info,0,_mcFreq_4a0d60cb769a49c86612958a4c733946,0);

		this.taken = taken;
		this.number = number;
		this.venue = venue;
	}

	/**
	 * Tells if the seat is taken or not
	 * @return True if taken, false otherwise 
	 */
	public boolean isTaken() 
	{
int _mcFreq_d0be6657fee89463ee5268bf8f5630df[] = new int[1];
PathVec_ERS_Iter3.enterMethod(Seat_37af17118f3262c8e2407be3a800275c.info,1,_mcFreq_d0be6657fee89463ee5268bf8f5630df,0);

		return taken;
	}

	/**
	 * Sets the seat as occupied
	 * @param taken True to set occupied, false to set vacant.
	 */
	public void setTaken(boolean taken) 
	{
int _mcFreq_d60a07103c19a4ec3ca960163cf03765[] = new int[1];
PathVec_ERS_Iter3.enterMethod(Seat_37af17118f3262c8e2407be3a800275c.info,2,_mcFreq_d60a07103c19a4ec3ca960163cf03765,0);

		this.taken = taken;
	}

	/**
	 * Seat number, that is, the number written at the back of the seat which shall match the number on your ticket.
	 * @return the number of the seat
	 */
	public int getNumber() 
	{
int _mcFreq_4a4f32d78a1e1cfd615160ea45fae12b[] = new int[1];
PathVec_ERS_Iter3.enterMethod(Seat_37af17118f3262c8e2407be3a800275c.info,3,_mcFreq_4a4f32d78a1e1cfd615160ea45fae12b,0);

		return number;
	}

	public void setNumber(int number) 
	{
int _mcFreq_1b579ac111aacb9572322af6481d5427[] = new int[1];
PathVec_ERS_Iter3.enterMethod(Seat_37af17118f3262c8e2407be3a800275c.info,4,_mcFreq_1b579ac111aacb9572322af6481d5427,0);

		this.number = number;
	}

	public VenueTimeslot getVenue() 
	{
int _mcFreq_2da53d77095b9149a7b8f761ed0f29db[] = new int[1];
PathVec_ERS_Iter3.enterMethod(Seat_37af17118f3262c8e2407be3a800275c.info,5,_mcFreq_2da53d77095b9149a7b8f761ed0f29db,0);

		return venue;
	}

	public void setVenue(VenueTimeslot venue)
	{
int _mcFreq_dfcf0163b9980ac9472d44288f3ef0a7[] = new int[1];
PathVec_ERS_Iter3.enterMethod(Seat_37af17118f3262c8e2407be3a800275c.info,6,_mcFreq_dfcf0163b9980ac9472d44288f3ef0a7,0);

		this.venue = venue;
	}
}
